<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <base href="${request.contextPath}/"/>
    <meta name=”renderer” content=”webkit|ie-comp|ie-stand”/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <link rel="icon" href="favicon.ico">

    <title>岗位添加|凌之迅信息|快速开发平台|Learun敏捷开发框架</title>
    <link href="Content/font/css/font-awesome.min.css" rel="stylesheet" />
    <link href="Content/bootstrap/bootstrap.min.css" rel="stylesheet" />

    <link rel="stylesheet" type="text/css" href="Content/webuploader/style.css" />
    <link href="Content/fancybox/jquery.fancybox.css" rel="stylesheet">
    <link href="Content/view/form.css" rel="stylesheet">
    <script src="Content/jquery/jquery-1.10.2.min.js"></script>
    <script src="Content/jquery/jquery.md5.min.js"></script>
    <script src="Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>
    <script src="Content/laydate/laydate.js"></script>

    <script src="Content/ueditor/ueditor.config.js"></script>
    <script src="Content/ueditor/ueditor.all.min.js"></script>
    <script src="Content/ueditor/lang/zh-cn/zh-cn.js"></script>

    <script src="Content/fancybox/jquery.fancybox.js"></script>
    <script type="text/javascript" src="Content/webuploader/upload.js?version=5.5"></script>
    <script type="text/javascript" src="Content/webuploader/fileupload.js?version=3.8"></script>
    <!--[if lt IE 9]>
    <script src="~/Content/bootstrap/html5shiv.min.js"></script>
    <script src="~/Content/bootstrap/respond.min.js"></script>
    <![endif]-->
    <script>
        //   *LaoNa* 写后台的地址，底下直接饮用
        var controlUrl = '/tblBasicsPost';

        function request(d) {
            for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
                var b = c[a].split("=");
                if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1])
            }
            return ""
        };
    </script>

</head>

<body class="Firefox 63.0 lr-uitheme-default">
<div id="lr_form_bg" class="lr-form-bg">
</div>
<input type="hidden" id="ywId" value="${id}" class="form-control" />
<input type="hidden" id="id" value="${id}" class="form-control" />

<div class="lr-form-wrap" id="form">
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">岗位名称<font face="宋体">*</font>
        </div>
        <input id="postname" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">岗位介绍<font face="宋体">*</font>
        </div>
        <textarea id="content" rows="5" class="form-control" isvalid="yes" checkexpession="NotNull"></textarea>
    </div>
<!--        <input id="text" type="textarea" class="form-control" isvalid="yes" checkexpession="NotNull"/>-->
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">岗位图片</div>
        <div id="posterpic" class="uploader"></div>
        <input type="hidden" id="postrepics"/>
        <input type="hidden" id="postrepicsNum" value="${postrepicsNum}">
    </div>
</div>

<script>
    //*LaoNa* 上传图片用
    $(document).ready(function(){
        path="";
        $(".fancybox").fancybox({
            openEffect:"none",
            closeEffect:"none",
            helpers: {
                overlay: {
                    locked: false
                }
            }
        });
        $("#posterpic").powerWebUpload({ auto: true,fileNum:$("#postrepicsNum").val(),fileNumLimit:1,type:"image",fileName:"posterpic" });
    });

    function upload(){
        var featurepicurl = document.getElementsByName("posterpic");
        console.log("#"+featurepicurl);
        var featurepicurls = '';
        for(var i=0;i < featurepicurl.length; i++){
            featurepicurls += featurepicurl[i].value + ",";
        }
        $("#postrepics").val(featurepicurls);

    }
</script>
<script>



        var parentId = request("parentId");
        var keyValue =$("#id").val();
        var acceptClick;
        var bootstrap = function(a, b) {
            var d = b.frameTab.currentIframe().selectedRow;
            var c = {
                init: function() {
                    c.initData()
                },
                initData: function() {
                    if (!!d) {
                        keyValue = d.ywId;
                        a("#form").lrSetFormData(d)
                    }
                }
            };
            acceptClick = function(e) {
                if (!a("#form").lrValidform()) {
                    return false
                }
                var f = a("#form").lrGetFormData(keyValue);
                f.parentId = parentId;
                a.lrSaveForm(top.$.rootUrl + controlUrl + "/SaveForm?keyValue=" + $("#id").val(), f, function (g) {
                    if (!!e) {
                        e()
                    }
                })
            };
            c.init()
        };
</script>
<script src="Content/view/uploadInsert.js"></script>
</body>

</html>